package IC.AST.nodes;

import java.util.List;

import IC.AST.*;

/**
 * a static function call
 */
public class StaticCall extends FunctionCall {
	private String classID;	// the class name

	/**
	 * @param classID the class name
	 * @param methodID the method name
	 * @param line the node line number
	 * @param column the node column number
	 */
	public StaticCall(String classID, List<Expression> args, 
			String methodID, String fileName, int line, int column) {
		super(methodID,args,fileName,line, column);
		this.classID = classID;
	}

	/**
	 * @return the class name
	 */
	public String getClassID() {
		return this.classID;
	}

	public <D,U> U accept(PropogatingVisitor<D,U> v, D context) throws Exception {
		return v.visit(this,context);
	}
}
